package com.xmb.wechat.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @Author lijiangop
 * @CreateTime 2020/4/29 14:46
 */
public class GroupCallEntity implements Parcelable {
    //通话状态
    private int state;
    //联系人
    private long    contactId;
    private String avatar;
    private String name;
    private int    avatarSrc;//头像图片来源：0-SDCard，1-APP内置

    public GroupCallEntity() {
    }


    protected GroupCallEntity(Parcel in) {
        state = in.readInt();
        contactId = in.readLong();
        avatar = in.readString();
        name = in.readString();
        avatarSrc = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(state);
        dest.writeLong(contactId);
        dest.writeString(avatar);
        dest.writeString(name);
        dest.writeInt(avatarSrc);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<GroupCallEntity> CREATOR = new Creator<GroupCallEntity>() {
        @Override
        public GroupCallEntity createFromParcel(Parcel in) {
            return new GroupCallEntity(in);
        }

        @Override
        public GroupCallEntity[] newArray(int size) {
            return new GroupCallEntity[size];
        }
    };

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public long getContactId() {
        return contactId;
    }

    public void setContactId(long contactId) {
        this.contactId = contactId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAvatarSrc() {
        return avatarSrc;
    }

    public void setAvatarSrc(int avatarSrc) {
        this.avatarSrc = avatarSrc;
    }

}
